package com.yuyou.tas.lesson.vo.req;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
* @author chengsiyuan
* @create 2018/5/16-10:37
 * 讲次库参数类
**/
public class ReqAddBaseChapter implements Serializable {


    @NotBlank(message="讲次名称 不能为空")
    @Length(max = 80 , message = "讲次名称不能超过80个字")
    @ApiModelProperty(value = "讲次名称", required = true)
    private String name;


    @NotNull(message="科目ID 不能为空")
    @ApiModelProperty(value = "科目ID", required = true)
    private Long dataSubject;

    @NotNull(message="年级ID 不能为空")
    @ApiModelProperty(value = "年级ID", required = true)
    private Long baseSectionId;

    @NotNull(message="层次ID 不能为空")
    @ApiModelProperty(value = "层次ID", required = true)
    private Long baseLevelId;

    /*@ApiModelProperty(value = "讲次说明")
    private String  explain;*/

    @ApiModelProperty(value = "学期ID")
    private Long baseTrimesterId;

    @ApiModelProperty(value = "讲义类型:0:上传讲义1:组装讲义", required = true)
    private Integer chapterType;

    /**
     * 讲次类型:0:课程讲次,1:期中期末讲次
     */
    @NotNull(message="讲次类型 不能为空")
    @ApiModelProperty(value = "讲次类型:0:课程讲次,1:期中期末讲次")
    private Integer type;

    /*@NotBlank(message="课件URL 不能为空")*/
    @ApiModelProperty(value = "课件URL")
    private String courseUrl;

    /*@NotBlank(message="课件名称 不能为空")*/
    @ApiModelProperty(value = "课件名称")
    private String courseName;

    /*@NotNull(message="课件大小 不能为空")*/
    @ApiModelProperty(value = "课件大小")
    private BigDecimal courseSize;

    /*@NotBlank(message="讲义Url 不能为空")*/
    @ApiModelProperty(value = "讲义Url")
    private String lectureUrl;

    /*@NotBlank(message="讲义名称 不能为空")*/
    @ApiModelProperty(value = "讲义名称")
    private String lectureName;

    /*@NotNull(message="讲义大小 不能为空")*/
    @ApiModelProperty(value = "讲义大小，单位kb")
    private BigDecimal lectureSize;


    private static final long serialVersionUID = 1L;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getDataSubject() {
        return dataSubject;
    }

    public void setDataSubject(Long dataSubject) {
        this.dataSubject = dataSubject;
    }

    public Long getBaseLevelId() {
        return baseLevelId;
    }

    public void setBaseLevelId(Long baseLevelId) {
        this.baseLevelId = baseLevelId;
    }

    /*public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }*/

    public String getCourseUrl() {
        return courseUrl;
    }

    public void setCourseUrl(String courseUrl) {
        this.courseUrl = courseUrl;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getLectureUrl() {
        return lectureUrl;
    }

    public void setLectureUrl(String lectureUrl) {
        this.lectureUrl = lectureUrl;
    }

    public String getLectureName() {
        return lectureName;
    }

    public void setLectureName(String lectureName) {
        this.lectureName = lectureName;
    }

    public Long getBaseTrimesterId() {
        return baseTrimesterId;
    }

    public void setBaseTrimesterId(Long baseTrimesterId) {
        this.baseTrimesterId = baseTrimesterId;
    }

    public BigDecimal getCourseSize() {
        return courseSize;
    }

    public void setCourseSize(BigDecimal courseSize) {
        this.courseSize = courseSize;
    }

    public Long getBaseSectionId() {
        return baseSectionId;
    }

    public void setBaseSectionId(Long baseSectionId) {
        this.baseSectionId = baseSectionId;
    }

    public BigDecimal getLectureSize() {
        return lectureSize;
    }

    public void setLectureSize(BigDecimal lectureSize) {
        this.lectureSize = lectureSize;
    }

    public Integer getChapterType() {
        return chapterType;
    }

    public void setChapterType(Integer chapterType) {
        this.chapterType = chapterType;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}